/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javaapplication6.DomainLayer;

/**
 *
 * @author meydlo
 */



//
public class Customer extends Person
{

    //
    private boolean businessC ;

    //
    private double discount=0 ;
    
    //
    public Customer(String name, String phoneNo, String address, boolean businessC,long id)
    {
        super(name, phoneNo, address, id);
        this.businessC=businessC;
    }

        //
    public void printCustomerInfo()
    {
       printPersonInfo();
        System.out.println(
                " is business: "+getISbusinnes()+
                "\n discount: "+getDiscount()
                );
    }

	//
    public void setBusiness (boolean businnesC)
    {
        this.businessC=businnesC;
    }

	//
    protected boolean getISbusinnes ()
    {
        return businessC;
    }



}

